+2001-11-30 Matthias Clasen <matthiasc@poet.de>
+
+ * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
+ gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
+ gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
+
+ * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
+ GTK_DISABLE_DEPRECATED.
+
+ * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
+
Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
+2001-11-30 Matthias Clasen <matthiasc@poet.de>
+
+ * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
+ gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
+ gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
+
+ * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
+ GTK_DISABLE_DEPRECATED.
+
+ * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
+
Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
+2001-11-30 Matthias Clasen <matthiasc@poet.de>
+
+ * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
+ gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
+ gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
+
+ * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
+ GTK_DISABLE_DEPRECATED.
+
+ * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
+
Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
+2001-11-30 Matthias Clasen <matthiasc@poet.de>
+
+ * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
+ gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
+ gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
+
+ * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
+ GTK_DISABLE_DEPRECATED.
+
+ * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
+
Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
+2001-11-30 Matthias Clasen <matthiasc@poet.de>
+
+ * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
+ gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
+ gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
+
+ * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
+ GTK_DISABLE_DEPRECATED.
+
+ * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
+
Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
+2001-11-30 Matthias Clasen <matthiasc@poet.de>
+
+ * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
+ gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
+ gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
+
+ * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
+ GTK_DISABLE_DEPRECATED.
+
+ * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
+
Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
+2001-11-30 Matthias Clasen <matthiasc@poet.de>
+
+ * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
+ gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
+ gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
+
+ * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
+ GTK_DISABLE_DEPRECATED.
+
+ * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
+ gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
+
Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
+2001-11-30 Matthias Clasen <matthiasc@poet.de>
+
+ * gdk/tmpl/colors.sgml, gdk/tmpl/pixmaps.sgml, gdk/tmpl/dnd.sgml,
+ gdk/tmpl/gcs.sgml: Document ref and unref functions as deprecated.
+
2001-11-29 Matthias Clasen <matthiasc@poet.de>
* gtk/gtk-sections.sgml: Add GtkTextChildAnchor.
<!-- ##### FUNCTION gdk_colormap_ref ##### -->
<para>
-Increase the reference count of a colormap.
+
</para>
-@cmap: a #GdkColormap.
-@Returns: @cmap
+@cmap:
+@Returns:
<!-- ##### FUNCTION gdk_colormap_unref ##### -->
<para>
-Decrease the reference count of a colormap. If the
-resulting reference count is zero, destroys the colormap.
+
</para>
-@cmap: a #GdkColormap.
+@cmap:
<!-- ##### FUNCTION gdk_colormap_get_system ##### -->
<!-- ##### FUNCTION gdk_drag_context_ref ##### -->
<para>
-Increases the reference count of a drag context by one.
+Deprecated function; use g_object_ref() instead.
</para>
@context: a #GdkDragContext.
<!-- ##### FUNCTION gdk_drag_context_unref ##### -->
<para>
-Decreases the reference count of a drag context by one.
+Deprecated function; use g_object_unref() instead.
</para>
@context: a #GdkDragContext.
<!-- ##### FUNCTION gdk_gc_ref ##### -->
<para>
-Increase the reference count on a graphics context.
+
</para>
-@gc: a #GdkGC.
-@Returns: @gc.
+@gc:
+@Returns:
<!-- ##### FUNCTION gdk_gc_unref ##### -->
<para>
-Decrease the reference count on a graphics context. If
-the resulting reference count is zero, the graphics
-context will be destroyed.
+
</para>
-@gc: a #GdkGC.
+@gc:
<!-- ##### MACRO gdk_gc_destroy ##### -->
<!-- ##### MACRO gdk_pixmap_ref ##### -->
<para>
-Increase the reference count of a pixmap.
+Deprecated equivalent of g_object_ref().
</para>
@pixmap: a #GdkPixmap
<!-- ##### MACRO gdk_pixmap_unref ##### -->
<para>
-Decrease the reference count of a pixmap. If the resulting
-reference count is zero, destroy the pixmap.
+Deprecated equivalent of g_object_unref().
</para>
@pixmap: a #GdkPixmap
<!-- ##### MACRO gdk_bitmap_ref ##### -->
<para>
-Increase the reference count of a bitmap. An alias
-for gdk_pixmap_ref().
+Deprecated equivalent of g_object_ref().
</para>
@Returns: @pixmap
<!-- ##### MACRO gdk_bitmap_unref ##### -->
<para>
-Decrease the reference count of a bitmap. An alias
-for gdk_pixmap_unref().
+Deprecated equivalent of g_object_unref().
</para>
@pixmap: a #GdkBitmap
#include "gdkcolor.h"
#include "gdkinternals.h"
+/**
+ * gdk_colormap_ref:
+ * @image: a #GdkColormap
+ *
+ * Deprecated function; use g_object_ref() instead.
+ *
+ * Return value: the colormap
+ **/
GdkColormap*
gdk_colormap_ref (GdkColormap *cmap)
{
return (GdkColormap *) g_object_ref (G_OBJECT (cmap));
}
+/**
+ * gdk_colormap_unref:
+ * @image: a #GdkColormap
+ *
+ * Deprecated function; use g_object_ref() instead.
+ *
+ * Return value: the colormap
+ **/
void
gdk_colormap_unref (GdkColormap *cmap)
{
GdkColormap* gdk_colormap_new (GdkVisual *visual,
gboolean allocate);
+
+#ifndef GDK_DISABLE_DEPRECATED
GdkColormap* gdk_colormap_ref (GdkColormap *cmap);
void gdk_colormap_unref (GdkColormap *cmap);
+#endif
GdkColormap* gdk_colormap_get_system (void);
#ifndef GDK_DISABLE_DEPRECATED
gint gdk_colormap_get_system_size (void);
-#endif
+#endif
void gdk_colormap_change (GdkColormap *colormap,
gint ncolors);
GType gdk_drag_context_get_type (void) G_GNUC_CONST;
GdkDragContext * gdk_drag_context_new (void);
+
+#ifndef GDK_DISABLE_DEPRECATED
void gdk_drag_context_ref (GdkDragContext *context);
void gdk_drag_context_unref (GdkDragContext *context);
+#endif
/* Destination side */
GdkColormap* gdk_drawable_get_colormap (GdkDrawable *drawable);
GdkVisual* gdk_drawable_get_visual (GdkDrawable *drawable);
gint gdk_drawable_get_depth (GdkDrawable *drawable);
+
+#ifndef GDK_DISABLE_DEPRECATED
GdkDrawable* gdk_drawable_ref (GdkDrawable *drawable);
void gdk_drawable_unref (GdkDrawable *drawable);
+#endif /* GDK_DISABLE_DEPRECATED */
/* Drawing
*/
parent_class->finalize (object);
}
+/**
+ * gdk_gc_ref:
+ * @gc: a #GdkGC
+ *
+ * Deprecated function; use g_object_ref() instead.
+ *
+ * Return value: the gc.
+ **/
GdkGC *
gdk_gc_ref (GdkGC *gc)
{
return (GdkGC *) g_object_ref (G_OBJECT (gc));
}
+/**
+ * gdk_gc_unref:
+ * @gc: a #GdkGC
+ *
+ * Deprecated function; use g_object_unref() instead.
+ *
+ * Return value: the gc.
+ **/
void
gdk_gc_unref (GdkGC *gc)
{
GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable,
GdkGCValues *values,
GdkGCValuesMask values_mask);
+
+#ifndef GDK_DISABLE_DEPRECATED
GdkGC *gdk_gc_ref (GdkGC *gc);
void gdk_gc_unref (GdkGC *gc);
+#endif
+
void gdk_gc_get_values (GdkGC *gc,
GdkGCValues *values);
void gdk_gc_set_values (GdkGC *gc,
GdkVisual* gdk_visual_get_best_with_both (gint depth,
GdkVisualType visual_type);
-#ifndef GTK_DISABLE_DEPRECATED
+#ifndef GDK_DISABLE_DEPRECATED
#define gdk_visual_ref(v) g_object_ref(v)
#define gdk_visual_unref(v) g_object_unref(v)
#endif